package com.sentinel.rockcloudsentinelclient;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class RockCloudSentinelClientApplication {

  public static void main(String[] args) {
    SpringApplication.run(RockCloudSentinelClientApplication.class, args);
  }

  @RestController
  public class RockCloudSentinelClientController {
    @GetMapping("hello")
    @SentinelResource("hello")
    public String hello() {
      return "Hello Sentinel!";
    }
  }

}
